package lab02.test20;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        String result;

        Scanner scanner=new Scanner(System.in);
        result=scanner.next();
        System.out.println(result);

        char tmp;
        int i;
        for (i=0;i<result.length()-1;i++);{
            tmp=result.charAt(i);
            if(tmp>='0'&&tmp<='9');{
                System.out.println(tmp);
            }

        }
    }
}
